<?php

class PressDirModel extends DirModel
{
	
	public $saveFilter=true;
	
	public function search()
	{
        // Warning: Please modify the following code to remove attributes that
        // should not be searched.

        $criteria=new CDbCriteria;
       	$criteria->compare('t.ut_press_id',empty($this->ut_press_id)?0:$this->ut_press_id);

        return new CActiveDataProvider(get_class($this), array(
            'criteria'=>$criteria,
         		'pagination'=>false,
        ));
   }	
}